<template>
	<view class="">

		<view class="home">
			<search @searchClick='onSearchClick' />
			<base-list :marginTop='20' type='2' :params='searchpParams' ref='baseRef' />
		</view>
		<bottom-btn  type="2"/>
	</view>


</template>

<script>
	import Search from '../components/search.vue'
	import baseList from '../components/baseList.vue'
	import bottomBtn from '../components/bottomBtn.vue'
	export default {
		components: {
			Search,
			baseList,
			bottomBtn
		},
		data() {
			return {
				searchpParams: {},
			};
		},

		onLoad() {

		},
		onShow() {

		},
		methods: {
			// 搜索框回调
			onSearchClick(val) {

				this.searchpParams = val

				this.$nextTick(() => {
					this.$refs.baseRef.initPage()
				})
			},
		}
	};
</script>
<style>
	page {
		background-color: #f5f5f5;

	}
</style>
<style lang="scss" scoped>
	.home {
		padding: 26rpx;

	}
</style>
